package com.infore.operation.service;

import com.infore.operation.entity.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author:wk
 * @date:Created in 15:11 2018\4\17 0017
 */
public interface FaultRecordService {

    String saveFaultRecord(String faultId, String equipId, String findId, String title, String discrib, String fttpid, String time, String isReport, String headPsonId, String code, String isTest, String buildTime, MultipartFile[] files);

    List<FaultList> queryFaultList(String userId, Integer pageNum);

    FaultDetail queryFaultRecordDetails(String gzId);

    List<FaultList> searchFault(String starttime, String endtime, String userId, String faultTypeId, String state0, String state1, String state2, Integer pageNum, String keyword);

    Map<String,Object> queryMtPcs(String mtPcsId);

    List<FaultType> queryFaultType();

    void deleteFault(String faultId);

    List<FaultRecdList> queryFaultRecdList(String userId, Integer pageNum);

    FaultRecord queryFaultRecdDetails(String gzId);

    void queryFaultRecdApprove(String faultId, String state, String time, String apId, String hdId, String discrib, String headPsonId, String faultApprovalId);

    List<FixList> queryReconditionList(String userId,Integer pageNum);

    List<FaultLevel> queryFaultLevel();

    List<FaultLevel> queryReconditionModel();

    void queryRecondition(String faId, String starttime, String result, String userId, String endtime, String faultLevel, String faultType, String timel, String states, String autostate, String partNum, String partList, MultipartFile[] picture)  throws IOException;

    List<RstList> queryReconditionCheckList(String userId);

    void queryReconditionCheck(String orId, String state, String userId, String time, String discrib);

    List<Inspect> getInspectHistoryList(String userId, String lastId, String stationId);

    List<Inspect> searchInspectHistory(String startTime, String lastId, String stationId, String endTime);

    void deleteInspectHistory(String inspectId);

    InspectDetail queryInspectDetails(String stationId);

    Object queryMtPcsBynum(String mtPcsId);

    List<Stock> queryPorts(String keyword, String lastId, String userId);

    List<NStock> queryMtStock(String lastId, String brId);

    List<NStock> searchMtStock(String mskeyword, String brId);

    void queryDailyInspect(MultipartFile[] faultImage, String userId, String stationId, String startTime, String endTime, String describe, MultipartFile[] pictures, String faultList, String partNum, String partList, String lat, String lnt, String address)  throws IOException;

    FixDetail getFixDetail(Integer fixId);
}
